/*
 * fileoper.h
 *
 *  Created on: Jan 14, 2014
 *      Author: jqc
 */

#ifndef FILEOPER_H_
#define FILEOPER_H_

#include "config.h"

int lockFile(char *fpath, FILE **fp);
int unlockFile(FILE *fp);

NODE *loadConfFile(FILE *fp);
int writeConfFile(FILE *fp, NODE *confmap);

#endif /* FILEOPER_H_ */
